<?php
	$tmp_arr = array(
	'text' => <<<XML
<xml>
<ToUserName><![CDATA[%s]]></ToUserName>
<FromUserName><![CDATA[%s]]></FromUserName>
<CreateTime>%s</CreateTime>
<MsgType><![CDATA[text]]></MsgType>
<Content><![CDATA[%s]]></Content>
<FuncFlag>0</FuncFlag>
</xml>
XML
,
	'image' => <<<XML
<xml>
<ToUserName><![CDATA[%s]]></ToUserName>
<FromUserName><![CDATA[%s]]></FromUserName>
<CreateTime>%s</CreateTime>
<MsgType><![CDATA[image]]></MsgType>
<Image>
<MediaId><![CDATA[%s]]></MediaId>
</Image>
</xml>
XML
,
	'voice' => <<<XML
<xml>
<ToUserName><![CDATA[%s]]></ToUserName>
<FromUserName><![CDATA[%s]]></FromUserName>
<CreateTime>%s</CreateTime>
<MsgType><![CDATA[voice]]></MsgType>
<Voice>
<MediaId><![CDATA[%s]]></MediaId>
</Voice>
</xml>
XML
,
	'music' => <<<XML
<xml>
<ToUserName><![CDATA[%s]]></ToUserName>
<FromUserName><![CDATA[%s]]></FromUserName>
<CreateTime>%s</CreateTime>
<MsgType><![CDATA[music]]></MsgType>
<Music>
<Title><![CDATA[%s]]></Title>
<Description><![CDATA[%s]]></Description>
<MusicUrl><![CDATA[%s]]></MusicUrl>
<HQMusicUrl><![CDATA[%s]]></HQMusicUrl>
</Music>
</xml>
XML
,
	'singlenews' => <<<XML
<xml>
<ToUserName><![CDATA[%s]]></ToUserName>
<FromUserName><![CDATA[%s]]></FromUserName>
<CreateTime>%s</CreateTime>
<MsgType><![CDATA[news]]></MsgType>
<ArticleCount>1</ArticleCount>
<Articles>
<item>
<Title><![CDATA[%s]]></Title> 
<Description><![CDATA[%s]]></Description>
<PicUrl><![CDATA[%s]]></PicUrl>
<Url><![CDATA[%s]]></Url>
</item>
</Articles>
</xml> 
XML
,
	'newses' => <<<XML
<xml>
<ToUserName><![CDATA[%s]]></ToUserName>
<FromUserName><![CDATA[%s]]></FromUserName>
<CreateTime>%s</CreateTime>
<MsgType><![CDATA[news]]></MsgType>
<ArticleCount>4</ArticleCount>
<Articles>
<item>
<Title><![CDATA[%s]]></Title> 
<Description><![CDATA[%s]]></Description>
<PicUrl><![CDATA[%s]]></PicUrl>
<Url><![CDATA[%s]]></Url>
</item>
<item>
<Title><![CDATA[%s]]></Title> 
<Description><![CDATA[%s]]></Description>
<PicUrl><![CDATA[%s]]></PicUrl>
<Url><![CDATA[%s]]></Url>
</item>
<item>
<Title><![CDATA[%s]]></Title> 
<Description><![CDATA[%s]]></Description>
<PicUrl><![CDATA[%s]]></PicUrl>
<Url><![CDATA[%s]]></Url>
</item>
<item>
<Title><![CDATA[%s]]></Title> 
<Description><![CDATA[%s]]></Description>
<PicUrl><![CDATA[%s]]></PicUrl>
<Url><![CDATA[%s]]></Url>
</item>
</Articles>
</xml> 
XML
,
	'video' => <<<XML
<xml>
<ToUserName><![CDATA[%s]]></ToUserName>
<FromUserName><![CDATA[%s]]></FromUserName>
<CreateTime>%s</CreateTime>
<MsgType><![CDATA[video]]></MsgType>
<Video>
<MediaId><![CDATA[%s]]></MediaId>
<Title><![CDATA[%s]]></Title>
<Description><![CDATA[%s]]></Description>
</Video> 
</xml>
XML
);
$appurl = C('APPURL');
$appurlstr = $appurl .__CONTROLLER__;
$newimagepath = __ROOT__ .C('NEWSIMAGEPATH');
$appid = C('APPID');
$yjnews = array(
	'title1' => '自助查询',
	'title2' => '我的委托',
	'title3' => '进度查询',
	'title4' => '详细查询',
	'title5' => '待取报告',
	'title6' => '已取报告',
	'picurl1' => $appurl.$newimagepath .'002.jpg',
	'picurl2' => $appurl.$newimagepath .'02.jpg',
	'picurl3' => $appurl.$newimagepath .'03.jpg',
	'picurl4' => $appurl.$newimagepath .'04.jpg',
	'picurl5' => $appurl.$newimagepath .'06.jpg',
	'picurl6' => $appurl.$newimagepath .'05.jpg',
	'newsurl1' => 'https://mp.weixin.qq.com/s/_n39DuaOP_vLfeFqe9o1VA',
	'newsurl2' => "https://open.weixin.qq.com/connect/oauth2/authorize?appid={$appid}&redirect_uri={$appurlstr}/consign&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect",
	'newsurl3' => "https://open.weixin.qq.com/connect/oauth2/authorize?appid={$appid}&redirect_uri={$appurlstr}/jindu&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect",
	'newsurl4' => "https://open.weixin.qq.com/connect/oauth2/authorize?appid={$appid}&redirect_uri={$appurlstr}/detail&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect",
	'newsurl5' => "https://open.weixin.qq.com/connect/oauth2/authorize?appid={$appid}&redirect_uri={$appurlstr}/wait&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect",
	'newsurl6' => "https://open.weixin.qq.com/connect/oauth2/authorize?appid={$appid}&redirect_uri={$appurlstr}/complete&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect",
	'newses' => <<<XML
<xml>
<ToUserName><![CDATA[%s]]></ToUserName>
<FromUserName><![CDATA[%s]]></FromUserName>
<CreateTime>%s</CreateTime>
<MsgType><![CDATA[news]]></MsgType>
<ArticleCount>6</ArticleCount>
<Articles>
<item>
<Title><![CDATA[%s]]></Title>
<PicUrl><![CDATA[%s]]></PicUrl>
<Url><![CDATA[%s]]></Url>
</item>
<item>
<Title><![CDATA[%s]]></Title>
<PicUrl><![CDATA[%s]]></PicUrl>
<Url><![CDATA[%s]]></Url>
</item>
<item>
<Title><![CDATA[%s]]></Title>
<PicUrl><![CDATA[%s]]></PicUrl>
<Url><![CDATA[%s]]></Url>
</item>
<item>
<Title><![CDATA[%s]]></Title>
<PicUrl><![CDATA[%s]]></PicUrl>
<Url><![CDATA[%s]]></Url>
</item>
<item>
<Title><![CDATA[%s]]></Title>
<PicUrl><![CDATA[%s]]></PicUrl>
<Url><![CDATA[%s]]></Url>
</item>
<item>
<Title><![CDATA[%s]]></Title>
<PicUrl><![CDATA[%s]]></PicUrl>
<Url><![CDATA[%s]]></Url>
</item>
</Articles>
</xml>
XML
);

$news = array(
	'title1' => '业务介绍',
	'title2' => '委托须知',
	'title3' => '选用标准',
	'title4' => '确认数量',
	'title5' => '选择项目',
	'title6' => '典型器件',
	'picurl1' => $appurl.$newimagepath .'1.jpg',
	'picurl2' => $appurl.$newimagepath .'2.jpg',
	'picurl3' => $appurl.$newimagepath .'3.jpg',
	'picurl4' => $appurl.$newimagepath .'4.jpg',
	'picurl5' => $appurl.$newimagepath .'5.jpg',
	'picurl6' => $appurl.$newimagepath .'6.jpg',
	'newsurl1' => 'http://mp.weixin.qq.com/s/_n39DuaOP_vLfeFqe9o1VA',
	'newsurl2' => 'http://mp.weixin.qq.com/s/nC2q7YusIGbkSkuw96WD7w',
	'newsurl3' => 'http://mp.weixin.qq.com/s/D9Ka09G6iU1bfMCldFUIoA',
	'newsurl4' => 'http://mp.weixin.qq.com/s/5BmxIcctl0weVWCq8PkQag',
	'newsurl5' => 'http://mp.weixin.qq.com/s/Pl26e2w1IA8YkcLV83HWPw',
	'newsurl6' => 'http://mp.weixin.qq.com/s/Pl26e2w1IA8YkcLV83HWPw',
	'newses' => <<<XML
<xml>
<ToUserName><![CDATA[%s]]></ToUserName>
<FromUserName><![CDATA[%s]]></FromUserName>
<CreateTime>%s</CreateTime>
<MsgType><![CDATA[news]]></MsgType>
<ArticleCount>6</ArticleCount>
<Articles>
<item>
<Title><![CDATA[%s]]></Title>
<PicUrl><![CDATA[%s]]></PicUrl>
<Url><![CDATA[%s]]></Url>
</item>
<item>
<Title><![CDATA[%s]]></Title>
<PicUrl><![CDATA[%s]]></PicUrl>
<Url><![CDATA[%s]]></Url>
</item>
<item>
<Title><![CDATA[%s]]></Title>
<PicUrl><![CDATA[%s]]></PicUrl>
<Url><![CDATA[%s]]></Url>
</item>
<item>
<Title><![CDATA[%s]]></Title>
<PicUrl><![CDATA[%s]]></PicUrl>
<Url><![CDATA[%s]]></Url>
</item>
<item>
<Title><![CDATA[%s]]></Title>
<PicUrl><![CDATA[%s]]></PicUrl>
<Url><![CDATA[%s]]></Url>
</item>
<item>
<Title><![CDATA[%s]]></Title>
<PicUrl><![CDATA[%s]]></PicUrl>
<Url><![CDATA[%s]]></Url>
</item>
</Articles>
</xml>
XML
);
